package com.wynet.shopsapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@TableName("t_ticket")
@NoArgsConstructor
public class Ticket {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer u_id;
    private Integer ticket;

    public Ticket(Integer u_id, Integer ticket) {
        this.u_id = u_id;
        this.ticket = ticket;
    }
}
